﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TrailBlazer
{
    public partial class vSplash : Form
    {
        // Fade In Timer Config
        private double m_dblOpacityIncrement = .05;
        private double m_dblOpacityDecrement = .1;
        private const int TIMER_INTERVAL = 50;

        public vSplash()
        {
            InitializeComponent();

            // Fade In Timer
            Timer timer1 = new Timer();

            this.Opacity = .0;
            timer1.Interval = TIMER_INTERVAL;
            timer1.Start();
            timer1.Tick += timer1_Tick;
        }

        private void timer1_Tick(object sender, System.EventArgs e)
        {
            if (m_dblOpacityIncrement > 0)
            {
                if (this.Opacity < 1)
                    this.Opacity += m_dblOpacityIncrement;
            }
        }
    }
}
